package com.hyy.backend.service;

import com.hyy.backend.entity.Knowledge;
import com.hyy.backend.entity.UserInfo;
import com.hyy.backend.entity.UserType;

import java.util.List;

public interface AdminService {
    // 用户管理
    List<UserInfo> getAllUsers();
    void updateUserActiveStatus(int userId, boolean active);
    void updateUserRole(int userId, UserType role);
    void deleteUser(int userId);

    // 知识帖子管理
    List<Knowledge> getAllKnowledges();
    void updateKnowledge(Knowledge knowledge);
    void updateKnowledgeDeleteStatus(Integer knowledgeId, boolean isDeleted);
    void deleteKnowledge(Integer knowledgeId);

    // 评论管理
    void deleteComment(Integer commentId);
}